package observer.practice_02;

import java.util.Observable;
import java.util.Observer;

/**
 * @author yi qiang
 * @date 2021/6/17 0:25
 */
public class Sina implements Observer {

    @Override
    public void update(Observable o, Object arg) {
        NewsAgency data=(NewsAgency)o;
        System.out.println("Sina 播报新闻 ==> "+data.getNews());
    }

}
